package com.jic.order.mapper;

import com.jic.order.entity.OrderError;
import com.jic.order.manage.request.OrderErrorRequest;
import com.jic.order.manage.response.OrderErrorResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单异常表
 * @author :
 * @email :
 * @since : 2020-03-03 07:17:57
 * @version : v1.0.0
 */
@Mapper
public interface  OrderErrorMapper {

    long insert(OrderError orderError);

    long delete(Long id);

    long update(OrderError orderError);

    OrderError queryByPrimaryKey(Long id);

    List<OrderError> query(OrderError orderError);

    List<OrderErrorResponse> queryPage(@Param("startIndex") int startIndex, @Param("orderError") OrderErrorRequest oer);

    long queryPageCount(@Param("orderError") OrderErrorRequest oer);
}
